package com.rs.game.player.dialogues;

import com.rs.utils.ShopsHandler;

public class Artisan extends Dialogue {
	
	private int npcId;

	@Override
	public void start() {
		npcId = (Integer) parameters[0];
		sendNPCDialogue(npcId, Expressions.HAPPY_TALKING, "I am the Artisan, I control all the skilling shops, would you like to view my shops?");
	}

	@Override
	public void run(int interfaceId, int componentId) {
		switch (stage) {
		case -1:
			sendOptionsDialogue("Skilling Shops", "Crafting Shop", "Woodcutting Shop", "Mining Shop", "Hunting Shop");
			stage = 0;
			break;
		case 0:
			switch (componentId) {
			case OPTION_1:
				end();
				ShopsHandler.openShop(player, 18);
				break;
			case OPTION_2:
				end();
				ShopsHandler.openShop(player, 19);
				break;
			case OPTION_3:
				end();
				ShopsHandler.openShop(player, 20);
				break;
			case OPTION_4:
				end();
				ShopsHandler.openShop(player, 21);
				break;
			}
		}
	}

	@Override
	public void finish() {
		// TODO Auto-generated method stub
		
	}
	
}